FROM openjdk:17-jdk-alpine
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
COPY target/spring-boot-protobuf-0.0.1-SNAPSHOT.jar /usr/local
WORKDIR /usr/local
CMD java -Dfile.encoding=utf-8 -Xms512m -Xmx1024m -jar spring-boot-protobuf-0.0.1-SNAPSHOT.jar
